package com.yqg.education.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqg.education.entity.TeachEvaluate;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2025-04-15
 */
@Mapper
public interface TeachEvaluateMapper extends BaseMapper<TeachEvaluate> {

    List<TeachEvaluate> findPage(Integer pageNum, Integer pageSize, Integer teachId, Integer stuId, String evaluate);

    Long findCount(Integer teachId, Integer stuId, String evaluate);

    @MapKey("id")
    List<Map<String, Object>>findTeacherEvaluation(@Param("pageStartNumber") Integer pageStartNumber,
                                                   @Param("pageSize") Integer pageSize);

    Integer findTeacherEvaluationCount();

    List<TeachEvaluate> getEvaluateByClassId(@Param("classId") Long classId);
}
